﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using SharedResources.Model;
using SharedResources.Utilities;
using log4net.Config;

namespace HomesteadTests
{
    [TestFixture]
    public class TestSmoothDataset
    {
        private log4net.ILog _log = log4net.LogManager.GetLogger(
  System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        [TestFixtureSetUp]
        public void Init()
        {
            XmlConfigurator.Configure();
        }

        [Test]
        public void SmoothDataset()
        {
            //make a dataset
            var sortedGroupedDataset = new SortedGroupedDataset();
            var rand = new Random();
            for (int i = 0; i < 10; i++)
            {
                var pointToAdd = new SpatioTemporalPoint(1, DateTime.UtcNow, rand.NextDouble(),
                                                         rand.NextDouble());
                sortedGroupedDataset.Add(pointToAdd);
                _log.Info("Adding to dataset: " + pointToAdd.SpatialData);
            }
            //UnderlyingData.SetOnceOCTOST(sortedGroupedDataset);


        }

    }
}
